package com.financing.platform.dao.impl;

import java.sql.SQLException;
import java.util.List;

import org.springframework.stereotype.Repository;

import com.financing.platform.dao.IAccountWithdrawDao;
import com.financing.platform.dto.AccountWithdrawDTO;
import com.financing.platform.util.SqlName;
import com.financing.platform.vo.AccountWithdrawVO;

/**
 * @Title: AccountWithdrawImpl.java
 * @Package com.financing.platform.dao.impl
 * @Description: 提现DAO实现 
 * @author  lisu
 */
@Repository("accountWithdrawDaoImpl")
public class AccountWithdrawDaoImpl extends BaseDaoImpl implements IAccountWithdrawDao {

	@SuppressWarnings("unchecked")
	public List<AccountWithdrawVO> queryAccountWithdrawList(
			AccountWithdrawVO accountWithdrawVo) throws SQLException {
		return this.sqlMapClient.queryForList(SqlName.accountWithdrawList,accountWithdrawVo);
	}

	public int updateAccountWithdraw(AccountWithdrawDTO accountWithdrawDTO)
			throws SQLException {
		return (Integer)this.sqlMapClient.update(SqlName.accountWithdrawUpdate,accountWithdrawDTO);
	}

	public int insertAccountWithdraw(AccountWithdrawDTO accountWithdrawDTO)
			throws SQLException {
		return (Integer) this.sqlMapClient.insert(SqlName.accountWithdrawAdd, accountWithdrawDTO);
	}

	public AccountWithdrawVO queryAccountWithdrawInfo(Integer id)
			throws SQLException {
		return (AccountWithdrawVO) this.sqlMapClient.queryForObject(SqlName.accountWithdrawInfo,id);
	}

	@Override
	public int queryAccountWithdrawListCount(AccountWithdrawVO accountWithdrawVo)
			throws SQLException {
		return (Integer) this.sqlMapClient.queryForObject(SqlName.accountWithdrawListCount,accountWithdrawVo);
	}



}

	